package com.nut.lmsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nut.lmsc.entity.PayRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PayRecordMapper extends BaseMapper<PayRecord> {

    @Select("select * from biz_pay_record where ssn=#{ssn}")
    PayRecord selectBySsn(@Param("ssn") String ssn);

    @Select("select * from biz_pay_record where order_id=#{orderId}")
    List<PayRecord> selectByOrderId(@Param("orderId") String orderId);

}